// SmallUtilz.h: interface for the CSmallUtilz4iTrans class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

class CSmallUtilz4iTrans  
{
public:
	CSmallUtilz4iTrans();
	virtual ~CSmallUtilz4iTrans();

	static void DeleteSomeFile(LPCTSTR lpFilename, BOOL bRecyclebin);
	static BOOL bIsFolderWritable(LPCTSTR tcFolder, BOOL bRecyclebin);
	static CString csGetWindowsPath();
	static CString csGetWindowsTempPath();
	static bool CheckTempFolder(CString &csTempFolder, BOOL bRecyclebin);
	static bool CheckTempFolderInt(LPCTSTR tcFolder, BOOL bRecyclebin);
	static void ms2HMSMS(int ms0, int &h, int &m, int &s, int &ms);
	static int tcTime2Int(TCHAR *tc, bool splitExists);
	static int cTime2Int(char *c, bool splitExists);
	static UINT GetFileSize(LPCTSTR sPathName);
	static bool IsFileorfolder(LPCTSTR szPathName, bool bFolder=false);
	static void EnableDialgItem(HWND hWnd, int nID, BOOL bEnabled);
	static bool getAppVersionNumber(CString &csVersion);
	static DWORD decibel2DWORD(double decibel);
	static double DWORD2decibel(DWORD dw);
	static LPCTSTR getAppNameOnly(LPCTSTR lpApp);
	static void getVersionNoAndInternalName(LPCTSTR lpFilename, WORD * vers, CString & csInternalname);
	static void tokenize2CSA(LPCTSTR lpStr, CStringArray & csa);
	static int findinCSAi(CStringArray & csa, LPCTSTR lpStr);
	static void makeBatchFileName(CString & csBatch, CString & csFolder, LPCTSTR lpTitle);
};
